import { $http } from '@escook/request-miniprogram'
$http.baseUrl = 'https://www.uinav.com'
$http.beforeRequest=function(){
  uni.showLoading({
    title:'数据加载中'
  })
}
$http.afterRequest=function(){
  uni.hideLoading()
}
//获取轮播图的接口
export const reqswiper=function(){
 return $http.get('/api/public/v1/home/swiperdata')
}
//获取商品分类的接口
export const reqcate=function(){
 return $http.get('/api/public/v1/home/catitems')
}
//获取首页楼层图片
export const reqfloorList=function(){
 return $http.get('/api/public/v1/home/floordata')
}
//获取分类数据
export const reqcateList=function(){
 return $http.get('/api/public/v1/categories')
}
//获取搜素详情
export const reqsearchList=function(kw){
 return $http.get('/api/public/v1/goods/qsearch',{query:kw})
}
//获取指定关键字或序号的goodslist
export const reqgoodsInfo=function(queryObj){
 return $http.get('/api/public/v1/goods/search',queryObj)
 
}
//获取具体的商品信息
export const reqgoodsdet=function(goods_id){
 return $http.get('/api/public/v1/goods/detail',{goods_id})
}


